    <script type="text/javascript" src="/ueditor/ueditor.config.js"></script>
    <script type="text/javascript" src="/ueditor/ueditor.all.min.js"></script>
<div class="ucenterRight">
    <div id="userIndex">
        <div class="singleItem userAda">
            <input type="hidden" value="<?php echo $user['image']?$user['image']:'https://file.viplgw.cn/ui/thinku-ielts-new/images/user/default@2x.png' ?>" class="imgSrc">
            <p class="itemTitle">头像</p>
            <p class="adaImg"><img class="oldImage" src="<?php echo $user['image']?$user['image']:'https://file.viplgw.cn/ui/thinku-ielts-new/images/user/default@2x.png' ?>" alt=""></p>
            <input type="button" id="toux_file" onclick="upImage()" value="更换头像">
        </div>
        <div class="singleItem">
            <p class="itemTitle">用户ID</p>
            <input type="text" value="<?php echo $user['userName'] ? $user['userName'] : ''?>" id="userId">
        </div>
        <div class="singleItem">
            <p class="itemTitle">用户昵称</p>
            <input type="text" value="<?php echo $user['nickname'] ? $user['nickname'] : '' ?>" id="userNick">
        </div>
        <div class="singleItem">
            <p class="itemTitle">所在城市</p>
            <!--省-->
            <select name="" id="prov" onchange="showCity(this)">
                <option value="<?php echo isset($user['address'][0])? $user['address'][0]:'选择省份'?>"><?php echo isset($user['address'][0])? $user['address'][0]:'选择省份'?></option>
            </select>
            <!--市-->
            <select name="" id="city" onchange="showCountry(this)">
                <option value="<?php echo isset($user['address'][1])? $user['address'][1]:'市'?>"><?php echo isset($user['address'][1])? $user['address'][1]:'市'?></option>
            </select>
            <!--区-->
            <select name="" id="country" onchange="selectCountry(this)">
                <option value="<?php echo isset($user['address'][2])? $user['address'][2]:'区、县'?>"><?php echo isset($user['address'][2])? $user['address'][2]:'区、县'?></option>
            </select>
        </div>
        <div class="singleItem">
            <p class="itemTitle">联系电话</p>
            <input type="text" value="<?php echo $user['phone'] ? $user['phone'] : '' ?>" id="userPhone">
        </div>
        <div class="singleItem">
            <p class="itemTitle">email</p>
            <input type="text" value="<?php echo $user['email'] ? $user['email'] : '' ?>" id="userEmail">
        </div>
        <div class="singleItem">
            <p class="itemTitle">毕业院校</p>
            <input type="text" value="<?php echo $user['school'] ? $user['school'] : '' ?>" id="userSchool">
        </div>
        <div class="singleItem">
            <p class="itemTitle">学历</p>
            <div class="singleItemDiv">
                <input type="text" value="<?php echo $user['education'] ? $user['education'] : '本科' ?>" readonly class="educationInput" id="userEducation">
                <div class="educatChoose">
                    <?php foreach ($education as $key => $value) { ?>
                        <a href="javascript:void (0)"><?php echo $value['name'] ?></a>
                    <?php } ?>
                </div>
            </div>
        </div>
        <div class="singleItem">
            <p class="itemTitle"></p>
            <a href="javascript:void (0)" class="submitData" onclick="fulfill()">保存</a>
        </div>
        <!--成功弹窗-->
        <div class="userSuccess">
            <div class="userSuccessCenter"><img src="https://file.viplgw.cn/ui/thinku-ielts-new/images/user/icon7@2x.png" alt=""><p>保存成功</p></div>
        </div>
    </div>
</div>
<script src="https://file.viplgw.cn/ui/thinku-ielts-new/js/ucenter/area.js"></script>
<script src="https://file.viplgw.cn/ui/thinku-ielts-new/js/ucenter/index.js"></script>
<script>
    //实例化编辑器
    var o_ueditorupload = UE.getEditor('j_ueditorupload',
        {
            autoHeightEnabled: false
        });
    o_ueditorupload.ready(function () {

        o_ueditorupload.hide();//隐藏编辑器

        //监听图片上传
        o_ueditorupload.addListener('beforeInsertImage', function (t, arg) {
            $('.imgSrc').val(arg[0].src);
            $('.oldImage').attr('src', arg[0].src);
        });

        /* 文件上传监听
         * 需要在ueditor.all.min.js文件中找到
         * d.execCommand("insertHtml",l)
         * 之后插入d.fireEvent('afterUpfile',b)
         */

    });

    // 弹出图片上传的对话框
    function upImage() {
        var myImage = o_ueditorupload.getDialog("insertimage");
        myImage.open();
    }
</script>
<script type="text/plain" id="j_ueditorupload"></script>